package com.link510.aitools.core.data.restapi;

import com.link510.aitools.core.message.MessageInfo;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface CommandService {


    /**
     * 获取设备数据
     * @param deviceSN 设备编号
     * @param command 设备命令
     * @return 设备数据
     */
    @GET("command/send")
    Observable<MessageInfo<String>> get(@Query(value = "deviceSN") String deviceSN,
                                                 @Query(value = "command") String command);
}
